package com.sean.designpatterns.behavioral.command.monster;

public class Main {
    public static void main(String[] args) {
        Monster monster = new Monster();
        Player player = new Player();
        Invoker invoker = new Invoker();
        ICommand attack = new AttackCommand(monster);
        ICommand growblood = new GrowBlood(player);
        invoker.setCommand(attack);
        invoker.execute();

        invoker.setCommand(growblood);
        invoker.execute();
    }
}
